package jungsun;

public class J01Account {
   // 은행 예금 처리프로그램
	//입	력값:계좌번호,통장잔액,월이율,연이율
	// 인출액,입급액,통장개설일
	public static void main(String[]args){
		 // 1변수 선언 및 초기화
		int aid = 0;
		int balance = 0;
		double interestRate = 0;
		String	dateCreated="2014-03-11";
		double getMonthlyInteresrtRate;
		int withDraw =0;
		int deposit = 0;
		   // 2번 계산 및연산
		//변수 초기화 없이 수식을 상요하면 오류발생!!
		
		getMonthlyInteresrtRate= interestRate;//12
		balance = balance + deposit; //입금
		balance = balance - withDraw; //출구
		   // 3번 결과출력
		
		System.out.println(aid);
		System.out.println(balance);
		System.out.println(interestRate);
		System.out.println(getMonthlyInteresrtRate);
		System.out.println(withDraw);
		System.out.println(deposit);
		
		// 시험값 : 1122,20000,4.5
		// 25000dlscnf,3000dlscnf
		aid = 1122 ;// 계좌번호
		balance = 20000; //잔액
		interestRate = 4.5;//연이율
		
		//계산
		getMonthlyInteresrtRate= interestRate /12;
		balance = balance - withDraw;
		//결과출력
		System.out.println(aid);
		System.out.println(balance);
		System.out.println(interestRate);
		System.out.println(dateCreated);
		System.out.println(getMonthlyInteresrtRate);
		System.out.println(withDraw);
		System.out.println(deposit);
		
		//두 벙째 인출
		}
		
}
      
	
	
